package pageObject;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;

public class IndexPage {
	/**
	 * 主页
	 */
	WebDriver driver;

	private WebElement logoutText;
	
	public IndexPage(WebDriver driver){
		this.driver=driver;
	}
	
	/**
	 * 退出登录
	 * @throws InterruptedException 
	 */
	public void logout() throws InterruptedException{
		logoutText=driver.findElement(By.xpath("/html/body/div[1]/div/div/div[2]/span[4]/a/span/span"));
		logoutText.click();
//		Thread.sleep(1000);
	}
	
}
